How to populate an LDAP server with users and groups via phpLDAPadmin

您所在的位置:网站首页 php ldap admin How to populate an LDAP server with users and groups via phpLDAPadmin

How to populate an LDAP server with users and groups via phpLDAPadmin

#How to populate an LDAP server with users and groups via phpLDAPadmin | 来源: 网络整理| 查看: 265

Account Information Share with Your Friends

How to populate an LDAP server with users and groups via phpLDAPadmin

Image of Jack Wallen by Jack Wallen in Data Centers on December 30, 2016, 10:49 AM PST How to populate an LDAP server with users and groups via phpLDAPadmin

If you're unsure how to add groups and users to LDAP, learn how simple the process is with the help of phpLDAPadmin.

If you have an LDAP server, I bet you know how time consuming it can be to add users. If you have the time, you can always create a file, complete with all of your formatted LDAP entries, and import those in from the command line.

More about data centers Data warehouse services: What to consider before choosing a vendor How to create a virtual machine in Google Cloud Platform How to set, change, and recover your MySQL root password The next SQL Server: Interview with Asad Khan of Microsoft

Some users prefer doing things the good old-fashioned graphical way, and that’s where phpLDAPadmin comes in handy. With this web-based LDAP admin tool, you can more easily manage your LDAP server and populate it with users.

I’ll walk you through the process of populating LDAP with the help of phpLDAPadmin on a Ubuntu 16.04 server running LDAP. I assume you have LDAP and phpLDAPadmin installed, and with all that out of the way, you can log into phpLDAP. But where do you go from there? Let me show you.

SEE: Storage in 2017: Big improvements are on the way (ZDNet)

Creating Organizational Units

LDAP breaks everything into very specific pieces, and we’re going to focus on two of those pieces: people and groups. Because we’re creating fairly generic Organizational Units (OUs), we’ll use the Generic Organizational Unit Template. To get there, log into phpLDAPadmin, click to expand your server listing (in my example it’s dc=monkeypantz,dc=net) and then click Create New Entry Here (Figure A).

Figure A

In the right pane (Figure B), select Generic: Organizational Unit.

Figure B

Let’s first create an OU named “groups”. In the next window type groups and click Create Object. Commit the group by clicking Commit in the next window (Figure C).

Figure C

You’ll see a new entry in the left pane called ou=groups (Figure D).

Figure D

Let’s create a new OU named “users”. Walk through the same process as above, though name the OU “users” instead of “groups”. You’ll see “ou=groups” and “ou=users” in the left pane.

Creating groups

Now that we have an OU created for groups, we can add the necessary groups. Let’s create groups for “admin”, “developers”, and “users”. Here’s how.

Click the groups OU in the left pane. In the resulting window, click Create Child Entry (Figure E). Click Generic: Posix Group. Type admin into the group text area. Click Create Object. Click Commit. Repeat the process for “developers” and “users”.

Figure E

Creating users

Now that we have our groups created, we want to create users. To do this, follow these steps.

Click ou=users from the left pane. In the resulting window, click Create A Child Entry. Select Generic: User Account. Fill out the required information- note that Common Name must be unique (Figure F). Click Create Object. Click Commit. Repeat this process until you have added your necessary users added.

Figure F

Adding users to groups

To add a user to a group, you must know the user’s UID (named User ID in the user creation window). To find a UID go to ou=users | View X child (where X is the number of users) and then locate the user to be added and make note of their associated UID. Once you have that UID, let’s add that user to the developers group. Here’s how.

Expand ou=groups. Click the developers group. Click Add New Attribute. From the drop-down, select memberUID. Enter the UID for the user in the memberUID section (Figure G). Click Update Object.

Figure G

After you add the first user, adding subsequent users is much simpler. If you click the group name (under ou=groups in the left pane), you can click Modify Group Members (under memberUID) and then add the users from a list.

How easy was that?

Now you know how to create groups, create users, and add users to groups on your LDAP server…all with the help of a user-friendly web-based GUI. LDAP isn’t nearly as difficult as many would assume. With the help of phpLDAPadmin, the task of administering that server has been made significantly easier.

Person using a laptop computer. Daily Tech Insider Newsletter

Stay up to date on the latest in technology with Daily Tech Insider. We bring you news on industry-leading companies, products, and people, as well as highlighted articles, downloads, and top resources. You’ll receive primers on hot tech topics that will help you stay ahead of the game.

Delivered Weekdays Sign up today Jack Wallen Published:  December 30, 2016, 10:49 AM PST Modified:  December 15, 2016, 9:21 AM PST See more Data Centers Also See How to install and configure LDAP and phpLDAPadmin (TechRepublic) How to set up local LDAP on the Openfiler NAS/SAN solution (TechRepublic) How to deploy a Samba domain controller in under 10 minutes (TechRepublic) Free Nethserver might be the small business server you're looking for (TechRepublic) Hardware Inventory Policy (Tech Pro Research)


【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3